package com.puman.service.impl;

import java.util.List;
import java.util.Map;

import javax.annotation.Resource;
import javax.transaction.Transactional;

import net.sf.json.JSONObject;

import org.hibernate.criterion.DetachedCriteria;
import org.springframework.stereotype.Service;

import com.core.BaseServiceImpl;
import com.core.Pager;
import com.puman.bean.M_company;
import com.puman.common.MyException;
import com.puman.dao.CompanyDao;
import com.puman.service.CompanyService;

@Service("companyService")
@Transactional
public class CompanyServiceImpl extends BaseServiceImpl<M_company, CompanyDao> implements CompanyService {

	@Resource
	private CompanyDao companyDao;

	@Override
	public List<M_company> getList(Integer supplier_id) {
		return companyDao.getList( supplier_id);
	}

	@Override
	public List<M_company> getListLike(Integer supplier_id, String name) {
		return companyDao.getListLike(supplier_id,name);
	}
}
